<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0px;
            margin: 0px;
        }
        ul{
            display: flex;
            height: 50px;
            width: 720px;

        }
        li{
            list-style: none;
            text-align: center;
            line-height: 50px;
        }
        a{
            width: 90px;
            height: 50px;
            background-color: pink;
            color: white;
            text-decoration: none;
            display: inline-block;
        }
        a:hover{
            background-color: green;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="">导航1</a></li>
        <li><a href="">导航2</a></li>
        <li><a href="">导航3</a></li>
        <li><a href="">导航4</a></li>
        <li><a href="">导航5</a></li>
        <li><a href="">导航6</a></li>
        <li><a href="">导航7</a></li>
        <li><a href="">导航8</a></li>
    </ul>
</body>
</html>